Skip to content

Default connect to homepage agent - #30

Merged
MaxHeimbrock merged 6 commits into
mainfrom
max/default-connect-to-homepage-agent
Aug 3, 2026
Merged

Default connect to homepage agent#30
MaxHeimbrock merged 6 commits into
mainfrom
max/default-connect-to-homepage-agent

Conversation

@MaxHeimbrock

@MaxHeimbrock MaxHeimbrock commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Background

We want to change the agent starter samples to auto-connect to our homepage agent by default to lower the entry barrier for new developers to talk to their first agent.

So now the devs first step is to install the app and talk to our agent, then learn how to deploy your agent and configure the tokens source.

Changes

  • Move expected .env file into assets/ so it can be optional
  • Set the homepage agent token server as default option
  • Chose if sandbox if assets/.env is present and sandbox id is filled
  • Remove cached token sources as they mess with agent dispatch
  • Change documentation to a two step: first try our agent, then configure your own
  • Split displayed text into before and after agent joins to distinguish agent has not joined yet

MaxHeimbrock and others added 6 commits July 31, 2026 15:34
The transcription placeholder always claimed the agent was listening,
even in rooms without an agent dispatch. Key the text off
session.agent.isConnected so it reads 'Waiting for agent' until an
agent participant is present and ready.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The welcome screen indicator was keyed off agent.canListen, which is
already true while pre-connect audio is buffering — before any agent
participant exists. Replace it with a shared AgentStatusIndicator that
shows 'Waiting for agent' (spinner) until an agent has joined and is
ready, and only then 'Agent is listening'.

The indicator is also overlaid on the agent screen in visualizer mode,
so the waiting state persists across the screen transition until the
agent actually joins; it hides on agent failure, where the session
error banner takes over.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@MaxHeimbrock
MaxHeimbrock marked this pull request as ready for review July 31, 2026 14:49
@MaxHeimbrock
MaxHeimbrock merged commit b200827 into main Aug 3, 2026
3 checks passed
@MaxHeimbrock
MaxHeimbrock deleted the max/default-connect-to-homepage-agent branch August 3, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants